from_bytes

pure static function from_bytes(bytes: byte_array): gtv

Decode a GTV from a byte array.

Inverse of gtv.to_bytes().

Return

the decoded GTV

Since

0.9.0

Parameters

bytes

the byte array to decode

Throws

exception

if the byte array does not encode a well-formed GTV; i.e. if a GTV cannot be decoded